package com.changgou.seckill.feign;

import com.changgou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: HuangFu
 * @Date: 2020/2/24 17:20
 * @Description:
 */
@FeignClient(name = "seckill")
public interface SeckillOrderFeign {
    /**
     * 订单秒杀
     * @param time
     * @param id
     * @return
     */
    @PostMapping("/seckillorder/add")
    Result add(@RequestParam("time") String time, @RequestParam("id") Long id);
}
